package io.afu.imagehelper.dto;

import net.coobird.thumbnailator.Thumbnails;

import java.io.File;
import java.io.IOException;

/**
 * @author RffanLAB.方露宇
 * @version 0.1
 */
public class Runner {


    public static void main(String[] args) throws IOException {
        String imgFile = "D:\\upload\\datetz.com.certificate.jpg";
        String targetFile = "D:\\upload\\datetz.com.certificate.renew.jpg";
        Thumbnails.of(new File(imgFile))
                .size(160, 160)
                .toFile(new File(targetFile));
    }
}
